//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.ldy.streamMap;

import com.alibaba.fastjson.JSONObject;
import org.apache.commons.lang3.StringUtils;

import java.util.ArrayList;
import java.util.List;

public class BookingFlight {
    private String flightDate;
    private String flightNo;
    private String depCode;
    private String arrCode;
    private String cabin;
    private String tripType = "OB";
    private Double price;
    private JSONObject specialDataMap;
    private String arriveDate;
    private String depName;
    private String arrName;
    private String depTime;
    private String arrTime;

    public BookingFlight() {
    }

    /** @deprecated */
    @Deprecated
    public String getKey() {
        List<String> list = new ArrayList();
        if(StringUtils.isNotBlank(this.flightDate)) {
            list.add(this.flightDate);
        }

        if(StringUtils.isNotBlank(this.flightNo)) {
            list.add(this.flightNo);
        }

        if(StringUtils.isNotBlank(this.depCode)) {
            list.add(this.depCode);
        }

        if(StringUtils.isNotBlank(this.arrCode)) {
            list.add(this.arrCode);
        }

        if(StringUtils.isNotBlank(this.cabin)) {
            list.add(this.cabin);
        }

        if(list.size() == 0) {
            return "";
        } else {
            String key = StringUtils.join(list, "_");
            return key;
        }
    }

    public BookingFlight(String flightDate, String flightNo, String depCode, String arrCode, String cabin) {
        this.flightDate = flightDate;
        this.flightNo = flightNo;
        this.depCode = depCode;
        this.arrCode = arrCode;
        this.cabin = cabin;
    }

    public BookingFlight(String flightDate, String flightNo, String depCode, String arrCode, String cabin, String tripType) {
        this.flightDate = flightDate;
        this.flightNo = flightNo;
        this.depCode = depCode;
        this.arrCode = arrCode;
        this.cabin = cabin;
        this.tripType = tripType;
    }

    public String getDepCode() {
        return this.depCode;
    }

    public void setDepCode(String depCode) {
        this.depCode = depCode;
    }

    public String getArrCode() {
        return this.arrCode;
    }

    public void setArrCode(String arrCode) {
        this.arrCode = arrCode;
    }

    public String getFlightDate() {
        return this.flightDate;
    }

    public void setFlightDate(String flightDate) {
        this.flightDate = flightDate;
    }

    public String getFlightNo() {
        return this.flightNo;
    }

    public void setFlightNo(String flightNo) {
        this.flightNo = flightNo;
    }

    public String getCabin() {
        return this.cabin;
    }

    public void setCabin(String cabin) {
        this.cabin = cabin;
    }

    public String getTripType() {
        return this.tripType;
    }

    public void setTripType(String tripType) {
        this.tripType = tripType;
    }

    public Double getPrice() {
        return this.price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public JSONObject getSpecialDataMap() {
        return this.specialDataMap;
    }

    public void setSpecialDataMap(JSONObject specialDataMap) {
        this.specialDataMap = specialDataMap;
    }

    public String getArriveDate() {
        return this.arriveDate;
    }

    public void setArriveDate(String arriveDate) {
        this.arriveDate = arriveDate;
    }

    public String getDepName() {
        return this.depName;
    }

    public void setDepName(String depName) {
        this.depName = depName;
    }

    public String getArrName() {
        return this.arrName;
    }

    public void setArrName(String arrName) {
        this.arrName = arrName;
    }

    public String getDepTime() {
        return this.depTime;
    }

    public void setDepTime(String depTime) {
        this.depTime = depTime;
    }

    public String getArrTime() {
        return this.arrTime;
    }

    public void setArrTime(String arrTime) {
        this.arrTime = arrTime;
    }
}
